package com.jason.system.controller;

import com.alibaba.fastjson.JSONObject;
import com.jason.system.common.ResultEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jie
 * @version 1.0
 * success come from self-discipline
 * @date 2021/5/12 13:38
 */
@RestController
@RequestMapping("/api")
public class ExceptionController {

  @GetMapping("/unauthorized")
  public JSONObject unauthorized(){
    JSONObject jsonObject = new JSONObject();
    ResultEntity r = new ResultEntity(402,"token isis expired",null);
    jsonObject.put("result",r);
    return jsonObject;
  }
}
